<#assign tit><#if _oper='add'>新增<#else>修改</#if>K-Yoga课程</#assign>
<@page.html title=tit>
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<div style="width:500px;">

  <form id="fm_input" method="post" action="<#if _oper='add'>_add<#else>_edit</#if>" onsubmit="return post(this);">
    <input type="hidden" name="classId" value="${table.classId!}">
    <div class="kbox">
      <table class="input">
        <tr>
          <th width="25%">课程</th>
          <td width="75%"><select name="ptCode" req="课程"><#if itemList??><#list itemList as t><option value="${t.code}"<#if table.ptCode?? && table.ptCode=t.code> selected</#if>>${t.code} - ${t.chName}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>教练</th>
          <td><select name="coachCode" req="教练"><#if coachList??><#list coachList as t><option value="${t.code}"<#if table.coachCode?? && table.coachCode=t.code> selected</#if>>${t.code} - ${t.chName}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>教室</th>
          <td><select name="roomCode" req="教练"><#if roomList??><#list roomList as t><option value="${t.code}"<#if table.roomCode?? && table.roomCode=t.code> selected</#if>>${t.code} - ${t.chName}</option></#list></#if></select></td>
        </tr>
        <tr>
          <th>上课时间</th>
          <td><input type="text" name="date" value="${table.classTime!}" req="上课时间" size="10" maxlength="10" onfocus="cal(this);">
            <select name="hh"><#list 8..22 as h><option value="${h}"<#if hh?? && hh=h> selected</#if>>${h}</option></#list></select>
            : <select name="mm"><#list 0..59 as m><#if m%5=0><option value="${m}"<#if mm?? && mm=m> selected</#if>>${m}</option></#if></#list></select></td>
        </tr>
        <tr>
          <th>人数</th>
          <td><input type="text" name="personMax" value="${table.personMax!}" req="人数" size="8" maxlength="4"></td>
        </tr>
        <tr>
          <th>备注</th>
          <td><textarea name="note" cols="30" rows="3">${table.note!}</textarea></td>
        </tr>
      </table>
    </div>
    <div class="button"><#if !ed?? || (ed?? && ed=1)><input type="submit" value="保 存"><#else><input type="button" value="关 闭" onclick="window.close();"></#if></div>
  </form>
</div>
</@page.html>